package com.syt.model.cmn;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 组织架构表
 * </p>
 *
 * @author xxxx
 * @since 2023-02-05
 */
@Getter
@Setter
@TableName("dict")
@ApiModel(value = "Dict对象", description = "组织架构表")
public class Dict implements Serializable {

    private static final long serialVersionUID = 1L;

    
    @ApiModelProperty("id")
    @TableId("id")
    private Long id;

    @ApiModelProperty("上级id")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty("名称")
    @TableField("name")
    private String name;

    @ApiModelProperty("值")
    @TableField("value")
    private Long value;

    @ApiModelProperty("编码")
    @TableField("dict_code")
    private String dictCode;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private Date updateTime;

    @ApiModelProperty("删除标记（0:不可用 1:可用）")
    @TableField("is_deleted")
    @TableLogic
    private Integer isDeleted;


    @ApiModelProperty("是否包含子节点")
    @TableField(exist = false)
    private boolean hasChildren;
    
    


}
